﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace admin.syh876.com.Code
{
    #region  用户信息
    [Serializable]
    public class AdminUser
    {
        /// <summary>
        /// 登录标识
        /// </summary>
        private int _iD;
        public int ID
        {
            get { return _iD; }
            set { _iD = value; }
        }

        /// <summary>
        /// 登录昵称
        /// </summary>
        private string _userName;
        public string UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }

        /// <summary>
        /// 登录密码，以加密形式存在
        /// </summary>
        private string _LoginPassword;
        public string LoginPassword
        {
            get { return _LoginPassword; }
            set { _LoginPassword = value; }
        }


        /// <summary>
        /// 所属用户组
        /// </summary>
        private int _roleId;
        public int RoleId
        {
            get { return _roleId; }
            set { _roleId = value; }
        }

        /// <summary>
        /// 所属角色组名称
        /// </summary>
        private string _roleName;
        public string RoleName
        {
            get { return _roleName; }
            set { _roleName = value; }
        }

        /// <summary>
        /// Action集合
        /// </summary>
        private string _actionCollection;
        public string ActionCollection
        {
            get { return _actionCollection; }
            set { _actionCollection = value; }
        }

        /// <summary>
        /// 登陆是否成功
        /// </summary>
        private bool _loginResult;
        public bool LoginResult
        {
            get { return _loginResult; }
            set { _loginResult = value; }
        }
    }
    #endregion


    #region 登陆信息
    public class LogOnModel
    {
        [Display(Name = "用户名")]
        public string UserName { get; set; }

        [DataType(DataType.Password)]
        [Display(Name = "密码")]
        public string PassWord { get; set; }
    }
    #endregion
}